package 设计模式.适配器模式.adaptor;

import 设计模式.适配器模式.JP110VInterface;

public class ElectricCooker {
    private JP110VInterface jp110VInterface;

    public ElectricCooker(JP110VInterface jp110VInterface) {
        this.jp110VInterface = jp110VInterface;
    }

    public void cook() {
        jp110VInterface.connect();
        System.out.println("做饭了结束了..");
    }
}
